package org.lkp.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.lkp.reggie.mapper.DishMapper;
import org.lkp.reggie.pojo.dto.DishDto;
import org.lkp.reggie.pojo.entity.Dish;

public interface DishService extends IService<Dish> {
    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
    public void saveWithFlavor(DishDto dishDto);
    //根据id查询菜品信息，同时查询菜品对应的口味信息
    public DishDto getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);
}
